package com.mybatisplus.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * @author yancheng
 * @date 2023/3/31
 * apiNote
 */
//实体类 与数据库表一一对应
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@TableName("student")
public class Student {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @TableField(value = "name", condition = SqlCondition.LIKE)
    private String name;
    private String gender;
    private String classes;
    private Integer score;
    private String stuid;
    private String password;

}
